<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>菜单管理</title>
</head>
<body>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title">人员管理<a href="javascript:openwinx('添加菜单','/admin/menu/form.htm','800','500');" class="add_btn1">添加菜单</a></h4>
            
            <table class="layui-table layui-form" lay-even="" lay-skin="nob">
                <thead>
	                <tr>
	                    <th>ID</th>
			            <th>栏目名</th>
			            <th>排序</th>
			            <th>状态</th>
			            <th>操作</th>
	                </tr>
                </thead>
                <tbody>
                    <#list menus as item>
			          <tr>
			            <td>${item.menuId}</td>
			            <td style="text-align:left">
			              ${item.menuName}
			            </td>
			            <td>${item.sequence}</td>
			            <td>
			              <#if item.isEnable =="Y">是<#else>否</#if>
			            </td>
			            <td class="td-manage">
			              <button class="layui-btn layui-btn layui-btn-xs"  onclick="openwinx('编辑','/admin/menu/edit.htm?menuId=${item.menuId}','800','500')" ><i class="layui-icon">&#xe642;</i>编辑</button>
			              <button class="layui-btn layui-btn-warm layui-btn-xs"  onclick="openwinx('添加父类','/admin/menu/form.htm?parentId=${item.menuId}','800','500')" ><i class="layui-icon">&#xe642;</i>添加子栏目</button>
			              <button class="layui-btn-danger layui-btn layui-btn-xs"  onclick="xconfirm('确认是否删除','/admin/menu/delete.htm',{menuId:'${item.menuId}'})" href="javascript:;" ><i class="layui-icon">&#xe640;</i>删除</button>
			            </td>
			          </tr>
			          </#list>
                </tbody>
            </table>
        </div>
     </div>
    <script>
      layui.use(['form'], function(){
        form = layui.form;
        
      });

      /*用户-删除*/
      function member_del(obj,id){
          layer.confirm('确认要删除吗？',function(index){
              //发异步删除数据
              $(obj).parents("tr").remove();
              layer.msg('已删除!',{icon:1,time:1000});
          });
      }



      function delAll (argument) {

        var data = tableCheck.getData();
  
        layer.confirm('确认要删除吗？'+data,function(index){
            //捉到所有被选中的，发异步进行删除
            layer.msg('删除成功', {icon: 1});
            $(".layui-form-checked").not('.header').parents('tr').remove();
        });
      }
    </script>
</body>
</html>